package com.chinapost.po;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Twdxx entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TWDXX", schema = "WDZY")
public class Twdxx implements java.io.Serializable {

	// Fields

	private String cid;
	private Tuser tuserByCcreateuserid;
	private Tdept tdept;
	private Tuser tuserByCmodifyuserid;
	private Byte ctype;
	private String cname;
	private String cjd;
	private String cwd;
	private String caddress;
	private String cphone;
	private Timestamp ccreatedate;
	private Timestamp cmodifydate;
	private String cds;
	private String cqx;
	private Integer cstate;
	private Integer czrs;
	private Integer clwg;
	private Integer chtg;
	private Integer ctx;
	private Integer catm;
	private Integer ccrs;
	private Double czizmj;
	private Double cziyymj;
	private Double czimjxj;
	private Double cziqtmj;
	private Double cczzmj;
	private Double cczdmmj;
	private Double cczqtmj;
	private Double czuzmj;
	private Double czudmmj;
	private Double czuqtmj;
	private Set<Tfczy> tfczies = new HashSet<Tfczy>(0);
	private Set<Tywcb> tywcbs = new HashSet<Tywcb>(0);
	private Set<Twdry> twdries = new HashSet<Twdry>(0);
	private Set<Tzxf> tzxfs = new HashSet<Tzxf>(0);
	private Set<Twdsb> twdsbs = new HashSet<Twdsb>(0);

	// Constructors

	/** default constructor */
	public Twdxx() {
	}

	/** minimal constructor */
	public Twdxx(String cid, String cname) {
		this.cid = cid;
		this.cname = cname;
	}

	/** full constructor */
	public Twdxx(String cid, Tuser tuserByCcreateuserid, Tdept tdept, Tuser tuserByCmodifyuserid, Byte ctype, String cname, String cjd, String cwd, String caddress, String cphone, Timestamp ccreatedate, Timestamp cmodifydate, String cds, String cqx, Integer cstate, Integer czrs, Integer clwg, Integer chtg, Integer ctx, Integer catm, Integer ccrs, Double czizmj, Double cziyymj, Double czimjxj, Double cziqtmj, Double cczzmj, Double cczdmmj, Double cczqtmj, Double czuzmj, Double czudmmj, Double czuqtmj, Set<Tfczy> tfczies, Set<Tywcb> tywcbs, Set<Twdry> twdries, Set<Tzxf> tzxfs, Set<Twdsb> twdsbs) {
		this.cid = cid;
		this.tuserByCcreateuserid = tuserByCcreateuserid;
		this.tdept = tdept;
		this.tuserByCmodifyuserid = tuserByCmodifyuserid;
		this.ctype = ctype;
		this.cname = cname;
		this.cjd = cjd;
		this.cwd = cwd;
		this.caddress = caddress;
		this.cphone = cphone;
		this.ccreatedate = ccreatedate;
		this.cmodifydate = cmodifydate;
		this.cds = cds;
		this.cqx = cqx;
		this.cstate = cstate;
		this.czrs = czrs;
		this.clwg = clwg;
		this.chtg = chtg;
		this.ctx = ctx;
		this.catm = catm;
		this.ccrs = ccrs;
		this.czizmj = czizmj;
		this.cziyymj = cziyymj;
		this.czimjxj = czimjxj;
		this.cziqtmj = cziqtmj;
		this.cczzmj = cczzmj;
		this.cczdmmj = cczdmmj;
		this.cczqtmj = cczqtmj;
		this.czuzmj = czuzmj;
		this.czudmmj = czudmmj;
		this.czuqtmj = czuqtmj;
		this.tfczies = tfczies;
		this.tywcbs = tywcbs;
		this.twdries = twdries;
		this.tzxfs = tzxfs;
		this.twdsbs = twdsbs;
	}

	// Property accessors
	@Id
	@Column(name = "CID", unique = true, nullable = false, length = 36)
	public String getCid() {
		return this.cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CCREATEUSERID")
	public Tuser getTuserByCcreateuserid() {
		return this.tuserByCcreateuserid;
	}

	public void setTuserByCcreateuserid(Tuser tuserByCcreateuserid) {
		this.tuserByCcreateuserid = tuserByCcreateuserid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CDEPTID")
	public Tdept getTdept() {
		return this.tdept;
	}

	public void setTdept(Tdept tdept) {
		this.tdept = tdept;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CMODIFYUSERID")
	public Tuser getTuserByCmodifyuserid() {
		return this.tuserByCmodifyuserid;
	}

	public void setTuserByCmodifyuserid(Tuser tuserByCmodifyuserid) {
		this.tuserByCmodifyuserid = tuserByCmodifyuserid;
	}

	@Column(name = "CTYPE", precision = 2, scale = 0)
	public Byte getCtype() {
		return this.ctype;
	}

	public void setCtype(Byte ctype) {
		this.ctype = ctype;
	}

	@Column(name = "CNAME", nullable = false, length = 100)
	public String getCname() {
		return this.cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	@Column(name = "CJD", length = 20)
	public String getCjd() {
		return this.cjd;
	}

	public void setCjd(String cjd) {
		this.cjd = cjd;
	}

	@Column(name = "CWD", length = 20)
	public String getCwd() {
		return this.cwd;
	}

	public void setCwd(String cwd) {
		this.cwd = cwd;
	}

	@Column(name = "CADDRESS", length = 200)
	public String getCaddress() {
		return this.caddress;
	}

	public void setCaddress(String caddress) {
		this.caddress = caddress;
	}

	@Column(name = "CPHONE", length = 20)
	public String getCphone() {
		return this.cphone;
	}

	public void setCphone(String cphone) {
		this.cphone = cphone;
	}

	@Column(name = "CCREATEDATE", length = 11)
	public Timestamp getCcreatedate() {
		return this.ccreatedate;
	}

	public void setCcreatedate(Timestamp ccreatedate) {
		this.ccreatedate = ccreatedate;
	}

	@Column(name = "CMODIFYDATE", length = 11)
	public Timestamp getCmodifydate() {
		return this.cmodifydate;
	}

	public void setCmodifydate(Timestamp cmodifydate) {
		this.cmodifydate = cmodifydate;
	}

	@Column(name = "CDS", length = 20)
	public String getCds() {
		return this.cds;
	}

	public void setCds(String cds) {
		this.cds = cds;
	}

	@Column(name = "CQX", length = 20)
	public String getCqx() {
		return this.cqx;
	}

	public void setCqx(String cqx) {
		this.cqx = cqx;
	}

	@Column(name = "CSTATE", precision = 5, scale = 0)
	public Integer getCstate() {
		return this.cstate;
	}

	public void setCstate(Integer cstate) {
		this.cstate = cstate;
	}

	@Column(name = "CZRS", precision = 5, scale = 0)
	public Integer getCzrs() {
		return this.czrs;
	}

	public void setCzrs(Integer czrs) {
		this.czrs = czrs;
	}

	@Column(name = "CLWG", precision = 5, scale = 0)
	public Integer getClwg() {
		return this.clwg;
	}

	public void setClwg(Integer clwg) {
		this.clwg = clwg;
	}

	@Column(name = "CHTG", precision = 5, scale = 0)
	public Integer getChtg() {
		return this.chtg;
	}

	public void setChtg(Integer chtg) {
		this.chtg = chtg;
	}

	@Column(name = "CTX", precision = 5, scale = 0)
	public Integer getCtx() {
		return this.ctx;
	}

	public void setCtx(Integer ctx) {
		this.ctx = ctx;
	}

	@Column(name = "CATM", precision = 5, scale = 0)
	public Integer getCatm() {
		return this.catm;
	}

	public void setCatm(Integer catm) {
		this.catm = catm;
	}

	@Column(name = "CCRS", precision = 5, scale = 0)
	public Integer getCcrs() {
		return this.ccrs;
	}

	public void setCcrs(Integer ccrs) {
		this.ccrs = ccrs;
	}

	@Column(name = "CZIZMJ", precision = 8)
	public Double getCzizmj() {
		return this.czizmj;
	}

	public void setCzizmj(Double czizmj) {
		this.czizmj = czizmj;
	}

	@Column(name = "CZIYYMJ", precision = 8)
	public Double getCziyymj() {
		return this.cziyymj;
	}

	public void setCziyymj(Double cziyymj) {
		this.cziyymj = cziyymj;
	}

	@Column(name = "CZIMJXJ", precision = 8)
	public Double getCzimjxj() {
		return this.czimjxj;
	}

	public void setCzimjxj(Double czimjxj) {
		this.czimjxj = czimjxj;
	}

	@Column(name = "CZIQTMJ", precision = 8)
	public Double getCziqtmj() {
		return this.cziqtmj;
	}

	public void setCziqtmj(Double cziqtmj) {
		this.cziqtmj = cziqtmj;
	}

	@Column(name = "CCZZMJ", precision = 8)
	public Double getCczzmj() {
		return this.cczzmj;
	}

	public void setCczzmj(Double cczzmj) {
		this.cczzmj = cczzmj;
	}

	@Column(name = "CCZDMMJ", precision = 8)
	public Double getCczdmmj() {
		return this.cczdmmj;
	}

	public void setCczdmmj(Double cczdmmj) {
		this.cczdmmj = cczdmmj;
	}

	@Column(name = "CCZQTMJ", precision = 8)
	public Double getCczqtmj() {
		return this.cczqtmj;
	}

	public void setCczqtmj(Double cczqtmj) {
		this.cczqtmj = cczqtmj;
	}

	@Column(name = "CZUZMJ", precision = 8)
	public Double getCzuzmj() {
		return this.czuzmj;
	}

	public void setCzuzmj(Double czuzmj) {
		this.czuzmj = czuzmj;
	}

	@Column(name = "CZUDMMJ", precision = 8)
	public Double getCzudmmj() {
		return this.czudmmj;
	}

	public void setCzudmmj(Double czudmmj) {
		this.czudmmj = czudmmj;
	}

	@Column(name = "CZUQTMJ", precision = 8)
	public Double getCzuqtmj() {
		return this.czuqtmj;
	}

	public void setCzuqtmj(Double czuqtmj) {
		this.czuqtmj = czuqtmj;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "twdxx")
	public Set<Tfczy> getTfczies() {
		return this.tfczies;
	}

	public void setTfczies(Set<Tfczy> tfczies) {
		this.tfczies = tfczies;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "twdxx")
	public Set<Tywcb> getTywcbs() {
		return this.tywcbs;
	}

	public void setTywcbs(Set<Tywcb> tywcbs) {
		this.tywcbs = tywcbs;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "twdxx")
	public Set<Twdry> getTwdries() {
		return this.twdries;
	}

	public void setTwdries(Set<Twdry> twdries) {
		this.twdries = twdries;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "twdxx")
	public Set<Tzxf> getTzxfs() {
		return this.tzxfs;
	}

	public void setTzxfs(Set<Tzxf> tzxfs) {
		this.tzxfs = tzxfs;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "twdxx")
	public Set<Twdsb> getTwdsbs() {
		return this.twdsbs;
	}

	public void setTwdsbs(Set<Twdsb> twdsbs) {
		this.twdsbs = twdsbs;
	}

}